x86/mm: fix up paging_mfn_is_dirty()
authorKeir Fraser <keir@xen.org>
Wed, 15 Dec 2010 12:12:15 +0000 (12:12 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 15 Dec 2010 12:12:15 +0000 (12:12 +0000)
commit2462f42b4a59e316941637d9c8e4c6ee36b9fa08
treefb02e218a65303cb7bd7165dc9d2982fe8171491
parent8b9a3ec6ac3efa18eb0094ca1cc46da550b0923d
x86/mm: fix up paging_mfn_is_dirty()

Add locking, and don't allocate the top-level page if it's not there.
Also gets rid of the default-to-1 case if there have been failed
allocations because the safer thing is actually to return 0 and avoid
modifying an un-dirtied page.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/paging.c